//
//  FavoritesDatabase.h
//  SmSh iphone
//
//  Created by SmSh on 13-5-28.
//  Copyright (c) 2013年 SmartShanghai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "CardModel.h"

@interface CardDatabase : NSObject{
    FMDatabase *db;
}

+ (CardDatabase *)sharedInstance;

//add card
- (BOOL)addCard:(CardModel *)obj;

//update card
- (BOOL)updateCardStatus:(NSInteger)cardId WithStatus:(NSInteger)cardStatus;

//search all card
- (NSArray *)searchAllCards ;

@end